package com.qfjy.mapper;

import com.qfjy.entity.Publock;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PublockMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Publock record);

    int insertSelective(Publock record);

    Publock selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Publock record);

    int updateByPrimaryKey(Publock record);

    /**
     * 查询前一天
     * @param format
     */

    Publock  selectYesterday(@Param("uid") String uid, @Param("format") String format);

    /**
     * 查询本月打卡记录
     * @return
     */
    List<Publock> selectSignList(@Param("uid")String uid,@Param("today")String today);
    /**
     *查询今天是否签到
     */

   Publock selectSignByDate(@Param("uid") String uid,@Param("data") String data);

}